<%@ page language="java" contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	/**
	 *1、basePath设置
	 *2、themePath设置
	 */
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	/**
	 *1、判断是否设置theme
	 *2、如果没有则按默认
	 */
	Object themePath = session.getAttribute("themePath");
	if (themePath == null)
	{
		themePath = "default";
	}
%>
<html>
	<head>
		<script type="text/javascript">
		function uploadFile(){
		  	ensure({
		            js:['js/common/jquery.form.js']
		            }, 
		            function()
		            {
					var options = { 
					    url:        'portal/processExcel.action', 
					    success:    function(msg) { 
					        alert(msg); 
					    },
					    error:    function(msg) { 
					        alert(msg); 
					    }
					}; 
					$("#uploadExcelForm").ajaxSubmit(options); 
		       });
		}
		</script>
	</head>
	<body>
		<form id="uploadExcelForm" action="portal/processExcel.action"
			method="post" enctype="multipart/form-data">
			<table>
				<tr>
					<td colspan="2">
						<h1>
							导入用户信息
						</h1>
						<br>
					</td>
				</tr>
			</table>
			<s:file id="fileName" name="upload" />
			<button type="button" onclick="uploadFile();">
				导 入
			</button>
		</form>
	</body>
</html>